package com.yun.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yun.entity.Folder;

public interface FolderService {
	public int addFolder(Folder folder);
	public List<Folder> getFolderById(int userId);
	public List<Folder> getFolderByFatherId(@Param("userId")int userId,@Param("fatherId")int fatherId);
	 boolean editFolder(@Param("foleName")String foleName,@Param("folderId")int folderId,  @Param("userId")int userId);
	 boolean moveFolder(@Param("fatherId")int fatherId,@Param("folderId")int folderId,  @Param("userId")int userId);
	   public Folder findFolderByName(@Param("foleName")String foleName);
	   public Folder selectByFolderId(int folderId);
		 boolean delFolder(@Param("folderId")int folderId,  @Param("userId")int userId);
}
